//
//  TravelsAuthor_LoveCollectionFlowLayout.h
//  艾听歌
//
//  Created by dllo on 16/5/28.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>

@class TravelsAuthor_LoveCollectionFlowLayout;

#pragma mark --协议代理第一步
@protocol YTFlowLayoutDelegate <NSObject>

//- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;

//自定义协议方法
-(CGFloat)ytFlowLayout:(TravelsAuthor_LoveCollectionFlowLayout *)flowLayout heightForItemAtIndexPath:(NSIndexPath *)indexPath itemWidth:(CGFloat)width;

@end

@interface TravelsAuthor_LoveCollectionFlowLayout : UICollectionViewFlowLayout

//保存每列的值
@property(nonatomic, strong)NSMutableDictionary  *columYDic;

//列数
@property(nonatomic, assign)NSInteger columCounts;

//边界值
@property(nonatomic, assign)UIEdgeInsets edgeInsets;

//列间距
@property(nonatomic, assign)NSInteger columSpace;

//行间距
@property(nonatomic, assign)NSInteger rowSpace;

//声明代理人
@property(nonatomic, assign)id<YTFlowLayoutDelegate>ytDelegate;

//存放所有attributes对象
@property(nonatomic, strong)NSMutableArray *attributesArray;




@end
